<?php if($this->dbTongJiPage != 'index') { ?>
</div>
<?php } ?>

<div id="footer">
    <div class="promise">
        <div class="clearfix container">
            <dl>
                <dt class="icon-1"></dt>
                <dd>
                    <?php
                    $index_footer_1 = $this->frontwebsite()->getTagArticleArray('index_footer_1');
                    if ($index_footer_1) {
                        echo $index_footer_1[0]['single_article_body'];
                    }
                    ?>
                </dd>
            </dl>
            <dl>
                <dt class="icon-2"></dt>
                <dd>
                    <?php
                    $index_footer_2 = $this->frontwebsite()->getTagArticleArray('index_footer_2');
                    if ($index_footer_2) {
                        echo $index_footer_2[0]['single_article_body'];
                    }
                    ?>
                </dd>
            </dl>
            <dl>
                <dt class="icon-3"></dt>
                <dd>
                    <?php
                    $index_footer_3 = $this->frontwebsite()->getTagArticleArray('index_footer_3');
                    if ($index_footer_3) {
                        echo $index_footer_3[0]['single_article_body'];
                    }
                    ?>
                </dd>
            </dl>
            <dl>
                <dt class="icon-4"></dt>
                <dd>
                    <?php
                    $index_footer_4 = $this->frontwebsite()->getTagArticleArray('index_footer_4');
                    if ($index_footer_4) {
                        echo $index_footer_4[0]['single_article_body'];
                    }
                    ?>
                </dd>
            </dl>
            <dl>
                <dt class="icon-5"></dt>
                <dd>
                    <?php
                    $index_footer_5 = $this->frontwebsite()->getTagArticleArray('index_footer_5');
                    if ($index_footer_5) {
                        echo $index_footer_5[0]['single_article_body'];
                    }
                    ?>
                </dd>
            </dl>
        </div>
    </div>
    <div class="helps clearfix container">
        <dl>
            <dt class="clearfix"><a href="javascript:;"><?php echo $this->translate('购物指南'); ?></a></dt>
            <?php
            $index_footer_buy_help = $this->frontwebsite()->getTagArticleArray('index_buy_help');
            if ($index_footer_buy_help) {
            foreach($index_footer_buy_help as $footer_buy_felp_val) {
                ?>
                <dd><a target="_blank" href="<?php echo $this->url('frontarticle/default/cms_id',array('action'=>'single','cms_id'=>$footer_buy_felp_val['single_article_id'])); ?>"><?php echo $this->escapeHtml($footer_buy_felp_val['single_article_title']); ?></a></dd>
            <?php } } ?>
        </dl>

        <dl>
            <dt class="clearfix"><a href="javascript:;"><?php echo $this->translate('配送方式'); ?></a></dt>
            <?php
            $index_footer_ship = $this->frontwebsite()->getTagArticleArray('index_ship');
            if ($index_footer_ship) {
            foreach($index_footer_ship as $footer_ship_val) {
                ?>
                <dd><a target="_blank" href="<?php echo $this->url('frontarticle/default/cms_id',array('action'=>'single','cms_id'=>$footer_ship_val['single_article_id'])); ?>"><?php echo $this->escapeHtml($footer_ship_val['single_article_title']); ?></a></dd>
            <?php } } ?>
        </dl>

        <dl>
            <dt class="clearfix"><a href="javascript:;"><?php echo $this->translate('支付方式'); ?></a></dt>
            <?php
            $index_footer_pay = $this->frontwebsite()->getTagArticleArray('index_pay');
            if ($index_footer_pay) {
            foreach($index_footer_pay as $footer_pay_val) {
                ?>
                <dd><a target="_blank" href="<?php echo $this->url('frontarticle/default/cms_id',array('action'=>'single','cms_id'=>$footer_pay_val['single_article_id'])); ?>"><?php echo $this->escapeHtml($footer_pay_val['single_article_title']); ?></a></dd>
            <?php } } ?>
        </dl>

        <dl>
            <dt class="clearfix"><a href="javascript:;"><?php echo $this->translate('售后服务'); ?></a></dt>
            <?php
            $index_footer_service = $this->frontwebsite()->getTagArticleArray('index_service');
            if ($index_footer_service) {
            foreach($index_footer_service as $footer_service_val) {
                ?>
                <dd><a target="_blank" href="<?php echo $this->url('frontarticle/default/cms_id',array('action'=>'single','cms_id'=>$footer_service_val['single_article_id'])); ?>"><?php echo $this->escapeHtml($footer_service_val['single_article_title']); ?></a></dd>
            <?php } } ?>
        </dl>

        <dl>
            <dt class="clearfix"><a href="javascript:;"><?php echo $this->translate('帮助信息'); ?></a></dt>
            <?php
            $index_footer_help = $this->frontwebsite()->getTagArticleArray('index_help');
            if ($index_footer_help) {
            foreach($index_footer_help as $footer_felp_val) {
            ?>
            <dd><a target="_blank" href="<?php echo $this->url('frontarticle/default/cms_id',array('action'=>'single','cms_id'=>$footer_felp_val['single_article_id'])); ?>"><?php echo $this->escapeHtml($footer_felp_val['single_article_title']); ?></a></dd>
            <?php } } ?>
        </dl>

        <div class="col-contact">
            <?php
            $index_footer_tel = $this->frontwebsite()->getTagArticleArray('index_tel');
            if ($index_footer_tel) {
                echo $index_footer_tel[0]['single_article_body'];
            }
            ?>
        </div>
    </div>
    <div class="copyright" style="height: <?php if ($this->index_flink_list) echo '100px;'; else echo '50px;'; ?>">
        <div class="container">
            <?php  if ($this->index_flink_list) { ?>
                <div>
                    <?php
                    foreach ($this->index_flink_list as $flink_value) {
                        ?>
                        <a href="<?php echo $flink_value['links_url']; ?>" target="_blank" title="<?php echo $flink_value['links_webname']; ?>"><img src="<?php echo $this->basePath($flink_value['links_logo']); ?>" style="border: 1px solid #dfdfdf;height: 40px;"></a>
                    <?php } ?>
                </div>
            <?php } ?>
        </div>
        <div class="container bootom">
            <div class="sub-2">
                <div>
                    <?php
                    $shop_footer_menu = $this->frontwebsite()->shopFrontMenu(3);
                    if(is_array($shop_footer_menu) and !empty($shop_footer_menu)) {
                        foreach($shop_footer_menu as $footer_key => $footer_value) {
                    ?>
                    <a href="<?php echo $footer_value['navigation_url']; ?>" <?php if($footer_value['navigation_new_window'] == 1) echo 'target="_blank"'; ?>><?php echo $footer_value['navigation_title']; ?></a>
                    <?php } } ?></div>
                Copyright &copy;<?php echo DBSHOP_YEAR_COPYRIGHT; ?> <a href="<?php echo DBSHOP_FRONT_COPYRIGHT_URL; ?>" target="_blank"><strong><?php echo DBSHOP_FRONT_COPYRIGHT; ?></strong></a> <?php echo $this->translate('版权所有');
                if ($this->frontwebsite()->websiteInfo('shop_icp')) echo '<br /><a href="http://www.beian.miit.gov.cn/" target="_blank">'.$this->frontwebsite()->websiteInfo('shop_icp').'</a>';
                echo $this->frontwebsite()->getSystemContent('statistics');
                ?></div>
            <div class="sub-3" style="width: auto;">
                <?php
                $footerImages = $this->frontwebsite()->frontFooter();
                foreach ($footerImages as $iValue) {
                    if(!empty($iValue['image'])) {
                        ?>
                        <a href="<?=(empty($iValue['url']) ? 'javascript:;' : $iValue['url'])?>" target="_blank"><img src="<?=$this->basePath($iValue['image'])?>" style="height: 32px"></a>
                        <?php
                    }   }
                ?>
            </div>
        </div>

    </div>
</div>